package com.zhuss.advice.proposalSon;

import com.zhuss.advice.processor.ProposalSonRead;
import com.zhuss.bean.bo.advice.proposalSon.SearchProposalSonBo;
import com.zhuss.common.ReadService;
import com.zhuss.exception.WpsException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

/**
 * @Author: zhushanshuo
 * @Date: 2020/3/6 9:48
 */
@Component("proposalSonReadService")
public class ProposalSonReadService implements ReadService<Object, Object> {

    @Autowired
    @Qualifier("proposalSonRead")
    private ProposalSonRead proposalSonRead;

    @Override
    public Object detail(Object o) throws WpsException {
        return null;
    }

    @Override
    public Object list(Object o) throws WpsException {
        SearchProposalSonBo bo = (SearchProposalSonBo) o;
        Object result = proposalSonRead.list(bo);
        return result;
    }
}
